﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ShadowEraDeckEditor
{
    public partial class FormOptions : Form
    {
        Settings Settings = new Settings();

        public FormOptions()
        {
            InitializeComponent();
        }

        private void FormOptions_Load(object sender, EventArgs e)
        {
            labelAppVersion.Text = Settings.appVersion;
            labelDatVersion.Text = Settings.datVersion;
            if (Settings.autoUpdate == true)
                checkBoxUpdate.Checked = true;
            else
                checkBoxUpdate.Checked = false;
        }

        private void checkBoxUpdate_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBoxUpdate.Checked == true)
                Settings.WriteUpdate("true");
            if (checkBoxUpdate.Checked == false)
                Settings.WriteUpdate("false");
        }
    }
}
